package test

import (
	_ "gitee.com/liuxiaowei123/vblog-01/vblog-01/vblog/apps"
	"gitee.com/liuxiaowei123/vblog-01/vblog-01/vblog/conf"
	"gitee.com/liuxiaowei123/vblog-01/vblog-01/vblog/ioc"
)

func DevelopmentSetup() {
	// err := conf.LoadConfigToml("../etc/etc.toml")
	// // err := conf.LoadConfigToml("project-git/vblog-01/vblog/etc/etc.toml")
	// if err != nil {
	// 	panic(err)
	// }
	err := conf.LoadConfigEnv()
	if err != nil {
		panic(err)
	}

	// 初始化配置
	ioc.Controller().Init()
}
